
// var _api_root = 'https://zhouzi.fxm365.com/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/'; // 测试2
// var _api_root = 'https://tzhouzi.fxm365.com/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/'; //测试
var _api_root = 'https://newzhouzi.fxm365.com/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/'; //正式



var api = {
  passport: {
    login: _api_root + 'passport/login',
    sms: _api_root + 'userlogin/sms',
    yzm: _api_root + 'userlogin/yzm',
    hm: _api_root + 'userlogin/phone',
    getteam: _api_root + 'userlogin/get-team',
    qrcode: _api_root + 'userlogin/qrcode',
    bindParent: _api_root + 'userlogin/bind-parent',
    user: _api_root + 'userlogin/user',
    is_ios: _api_root + 'userlogin/is_ios',
  },
  index: {
    index: _api_root + 'index/index',
    lessonInfo: _api_root + 'index/lesson-info',
    sectionInfo: _api_root + 'index/section-info',
    addComment: _api_root + 'index/add-comment',
    recommendSection: _api_root + 'index/recommend-section',
    allList: _api_root + 'index/all-list',
    lessonDetail: _api_root + 'index/lesson-detail',
    islike: _api_root + 'index/islike',
    like: _api_root + 'index/like',
    commentInfo: _api_root + 'index/comment-info',
    levleLog: _api_root + 'index/level-log',
    cancelShare: _api_root + 'index/cancel-share',
    continueShare: _api_root + 'index/continue-share',
    menu: _api_root + 'index/menu',
    free: _api_root + 'index/free',
    wendao: _api_root + 'index/wendao',
    wendaoList: _api_root + 'index/wendao-list',
    wendaoDetail: _api_root + 'index/wen-detail',
    audioDetail: _api_root + 'index/audio-detail'
  },
  three: {
    recommend: _api_root + 'index/recommend-section', 
    courseList: _api_root + 'index/course-list', 
    courseDetail: _api_root + 'index/course-info', 
    audioList: _api_root + 'index/audio-list', 
    audioDetail: _api_root + 'index/audio-info', 
    playInfo: _api_root + 'index/play-info',
  },
  order: {
    mine: _api_root + 'orders/user-order',
    lesson: _api_root + 'orders/lesson',
    course: _api_root + 'orders/course',
    zl_revoke: _api_root + 'lesson-order/revoke',
    kc_revoke: _api_root + 'course-order/revoke',
    hy_revoke: _api_root + 'vip-order/revoke'

  },
  user: {
    apply: _api_root + 'userlogin/apply',
    break: _api_root + 'userlogin/break-contact',
    sms: _api_root + 'userdd/sms',
    yzm: _api_root + 'userdd/yzm',
    userInfo: _api_root + 'userdd/index',
    info: _api_root + 'userdd/userinfo',
    editInfo: _api_root + 'userdd/edit-userinfo',
    article: _api_root + 'userdd/article',
    cashDraw: _api_root + 'userdd/cash-detail',
    cashReward: _api_root + 'userdd/share-money',
    idealReward: _api_root + 'userdd/get-integral',
    integral: _api_root + 'userdd/integral',
    moneyDetail: _api_root + 'userdd/money-detail',
    takeMoney: _api_root + 'userdd/take-money',
    integralDetail: _api_root + 'userdd/integral-detail',
    takeIntegral: _api_root + 'userdd/take-integral',
  },
  study: {
    footprint: _api_root + 'index/user-footprint',
    history: _api_root + 'index/learning-history',
    collection: _api_root + 'index/collection-list',
    changeCollection: _api_root + 'index/user-collection',
    comment: _api_root + 'index/user-comment',
    delComment: _api_root + 'index/del-comment',
  },
  lessonOrder:{
    submitPreview: _api_root + 'lesson-order/submit-preview',
    submit: _api_root + 'lesson-order/submit',
  },
  courseOrder:{
    submitPreview: _api_root + 'course-order/submit-preview',
    submit: _api_root + 'course-order/submit',
  },
  userdd:{
    vipIndex: _api_root + 'userdd/vip-index',
    earn: _api_root + 'userdd/earn',
    articles: _api_root + 'userdd/articles',
  },
  vipOrder:{
    submitPreview: _api_root + 'vip-order/submit-preview',
    submit: _api_root + 'vip-order/submit',
    detail: _api_root + 'userdd/vip-detail',
  },

  message:{
    msg: _api_root + 'message/msg',
    detail: _api_root + 'message/detail',
    read: _api_root + 'message/read'
  },
  card:{
    card: _api_root + 'index/award-list',
    number: _api_root + 'index/award-left',
    transfer: _api_root + 'index/give-award',
    record: _api_root + 'index/receive-list',
    receiveSend: _api_root + 'index/receive-award',
    getReceive: _api_root + 'index/receive-detail',
  },
  wechat: {
    userInfo: _api_root + 'wechat-login/userinfo',
  }
};
module.exports = api;